const seq = require('@db/seq');
const { string, integer, text } = require('@db/types');


const model = {
  phone: {
    type: string(),
    allowNull: false,
    comment: '用户手机号',
    verification: 'number',
  },
  name: {
    allowNull: true,
    comment: '用户名称',
    type: string,
    verification: 'string',
  },
  avatar: {
    allowNull: true,
    comment: '用户头像',
    type: text,
    verification: 'string',
  },
  status:{
    allowNull: true,
    comment: '用户状态',
    type: integer,
    defaultValue:1101
  }
}


// 系统接口表
const MobileUser = seq.define('mobileUser', model);

module.exports = {
  MobileUser,
};
